package com.maserb.monitor.service.jwQuestion;

import com.maserb.monitor.entity.jwQuestion.JwQuestionItemEntity;
import com.maserb.monitor.repository.JwQuestion.JwQuestionItemRepository;
import com.maserb.monitor.service.base.JpaSpecificationService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface JwQuestionItemService extends JpaSpecificationService<JwQuestionItemRepository, JwQuestionItemRepository, JwQuestionItemEntity, String> {
    Page<JwQuestionItemEntity> findAllByParentId(String parentId, Pageable pageable);

    void save(JwQuestionItemEntity entity, String parentId);

    void doDelete(String id);
}